//
// Created by YE on 2024/2/10.
//

#ifndef INTERPRETER_YCH_STRING_H
#define INTERPRETER_YCH_STRING_H
#include "ych.h"
#define INITIAL_CAPACITY 8
typedef struct YString {
    char *data;
    size_t length;
    size_t capacity;
} YString;
void initString(YString *yString);
void initString(YString *yString, const char * oldStr);
void appendString(YString *yString, const char *append);
void destroyString(YString *yString);
void copyString(YString *yString,YString *oldStr);
#endif //INTERPRETER_YCH_STRING_H
